package com.api.shopapi.service.impl;


import com.api.shopapi.entity.CommandCenterStaffRel;
import com.api.shopapi.mapper.CommandCenterStaffRelMapper;
import com.api.shopapi.service.CommandCenterStaffRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CommandCenterStaffRelServiceImplOne")
public class CommandCenterStaffRelServiceImpl implements CommandCenterStaffRelService {

    @Autowired
    private CommandCenterStaffRelMapper commandCenterStaffRelMapper;

    @Override
    public
    int insert(CommandCenterStaffRel commandCenterStaffRel){
        return commandCenterStaffRelMapper.insert(commandCenterStaffRel);
    }


    @Override
    public
    int delete(String commandCenterStaffRelCode){
        return commandCenterStaffRelMapper.delete(commandCenterStaffRelCode);
    }


    @Override
    public
    CommandCenterStaffRel getByCommandCenterStaffRelCode(String commandCenterStaffRelCode){
        return commandCenterStaffRelMapper.getByCommandCenterStaffRelCode(commandCenterStaffRelCode);
    }


    @Override
    public
    CommandCenterStaffRel getByStaffCode(String staffCode){
        return commandCenterStaffRelMapper.getByStaffCode(staffCode);
    }


    @Override
    public
    List<CommandCenterStaffRel> ListByCommandCenterCode(String commandCenterCode){
        return commandCenterStaffRelMapper.ListByCommandCenterCode(commandCenterCode);
    }

}
